package com.gopay.common.mq.producer;

import org.springframework.jms.core.JmsTemplate;

import javax.annotation.Resource;
import java.io.Serializable;

/**
 *  点对点消息生产者
 */
public class QueueMsgProducer<T extends Serializable> extends AbstractMsgProducer<T> {

    @Override
    @Resource(name = "jmsQueueTemplate")
    public void setJmsTemplate(JmsTemplate jmsTemplate) {
        super.setJmsTemplate(jmsTemplate);
    }

    @Override
    protected void beforeSendMsg(T msg) {
        logger.info("Before send message to Queue .");
    }

}
